Description | Gets a list of all the keys in a Design Notes file. | ||||||
Arguments | FileHandle noteHandle , char* keyBufArray[64] , int keyArrayMaxLen |
||||||
|
|||||||
Returns | A Boolean value indicating whether the operation was successful, and stores the key names in keyBufArray . |
||||||
Example | The following code prints the key names and values of all the keys in the Design Notes file associated with welcome.html: | ||||||
![]() |
typedef char[64] InfoKey; FileHandle noteHandle = OpenNotesFile("file:///c|sites/avocado8/iwjs/welcome.html"); if (noteHandle > 0){ int keyCount = GetNotesKeyCount(noteHandle); if (keyCount <= 0) return; InfoKey* keys = new InfoKey[keyCount]; BOOL succeeded = GetNotesKeys(noteHandle, keys, keyCount); if (succeeded){ for (int i=0; i < keyCount; i++){ printf("Key is: %s\n", keys[i]); printf("Value is: %s\n\n", GetNote(noteHandle, keys[i]); } delete keys; } CloseNotesFile(noteHandle); |
|
![]() |